<%@ include file="/taglibs.jsp"%>

<head>
    <title><fmt:message key="attachFileSearchForm.title"/></title>
    <script type="text/javascript" src="${ctx}/scripts/file_module.js"></script>
</head>
<s:form name="attachFileSearchForm" action="search_attach_file" method="post">

<s:select key="file.field" name="fieldId" list="fields" listKey="id" listValue="name" headerKey="%{getText('select.default.key')}" headerValue="%{getText('select.default.value')}"></s:select><br/>
<s:select key="file.category" cssStyle="max-width: 500px !important;" name="cateId" list="catList" listKey="value" listValue="name" headerKey="%{getText('select.default.key')}" headerValue="%{getText('select.default.value')}" required="true"></s:select>   
<s:select key="attachFile.detail.documentType" list="lstCategoryType"  name="attachFile.categoryType.id" listKey="id" listValue="name" headerKey="%{getText('select.default.key')}" headerValue="%{getText('select.default.value')}" />

<s:textfield key="attachFile.attachFileName" size="50"/>  

<tr>
    <td colspan="2">
	    <button type="submit" class="button" name="search" onclick="this.blur()">
			<fmt:message key="button.search.title"></fmt:message>
			<img src="${ctx}/images/btn_search.png" align="left" height="20" width="20">
		</button>
    </td>
</tr>
</s:form>
<br/>
<display:table name="attachFiles" class="table" requestURI="" id="attachFiles" export="false" pagesize="10">
    
    <display:column property="attachFileName" sortable="true" titleKey="attachFile.attachFileName" escapeXml="true"/>
    <display:column property="numberOfCopy" sortable="true" titleKey="attachFile.numberOfCopy" escapeXml="true"/>
    <display:column property="categoryType.name" sortable="true" titleKey="attachFile.detail.documentType" escapeXml="true"/>
	<display:column sortable="true" titleKey="file.action" >
        <button type="submit" class="button" name="edit" onclick="location.href='edit_attach_file.html?id=${attachFiles.id}';">
			<fmt:message key="button.edit.title"></fmt:message>
			<img src="${ctx}/images/btn_edit.png" align="left" height="20" width="20">
		</button>
	</display:column>    
</display:table>

<script type="text/javascript">highlightTableRows("attachFileList");</script>

